<?php

addContent("<h2 class=\"section\">Edit XML</h2>");

addContent("<form name=\"addform\" id=\"addform\" method=\"post\"><p><input type=\"button\" onclick=\"Redirect('../admin/xml_import.php')\" value=\"Import New XML\" /></p></form>");

addContent("<div id=\"dvFrame\"><h2>Choose a language</h2>");

addContent("<table><tr><td><select onchange=\"onclick_selectChoosenLan(this)\">");

$langOptions = getLangs();

foreach($langOptions as $value){
	
	addContent("<option value=\"".$value[0]."\">".$value[1]." ".$value[0]."</option>");
}

addContent("</select>&nbsp;&nbsp;&nbsp;<input type=\"button\" value=\"Add a new language\" onclick=\"onclick_languageform()\"/></td><td><div id=\"dvXmlexporter\"></div></td></tr></table>");

addContent("<div id=\"xmlcontainer\" style=\"width:1024px;height:800px\"><div id=\"xmltagtree\" style=\"float:left;overflow:scroll;width:70%;height:100%;\"><table>");

$xmlSections = getXMLSections();

foreach($xmlSections as $value){
	
	addContent("<tr><td valign=\"top\"><a href=\"javascript:void(0)\" onclick=\"onclickPlusDir(this,'','".$value["x_section"]."','en')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" style=\"text-decoration:none;\" onclick=\"onclick_selectxmlfileexport(this,'en')\" onmouseover=\"onmouseoverXMLTags(this)\" onmouseout=\"onmouseoutXMLTags(this)\">".$value["x_section"]."</a><div></div></td></tr>");
}

addContent("</table></div>");

addContent("<div id=\"xmlcontrolpanel\" style=\"float:right;width:30%;height:100%;\">");


addContent("</div></div></div>");

//print_r($XML);


?>